package com.ruoyi.project.reportSystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.reportSystem.mapper.AttendanceRecordImageMapper;
import com.ruoyi.project.reportSystem.domain.AttendanceRecordImage;
import com.ruoyi.project.reportSystem.service.IAttendanceRecordImageService;

/**
 * 图片查看Service业务层处理
 * 
 * @author wangshuo
 * @date 2021-01-28
 */
@Service
public class AttendanceRecordImageServiceImpl implements IAttendanceRecordImageService 
{
    @Autowired
    private AttendanceRecordImageMapper attendanceRecordImageMapper;

    /**
     * 查询图片查看
     * 
     * @param id 图片查看ID
     * @return 图片查看
     */
    @Override
    public AttendanceRecordImage selectAttendanceRecordImageById(Long id)
    {
        return attendanceRecordImageMapper.selectAttendanceRecordImageById(id);
    }

    /**
     * 查询图片查看列表
     * 
     * @param attendanceRecordImage 图片查看
     * @return 图片查看
     */
    @Override
    public List<AttendanceRecordImage> selectAttendanceRecordImageList(AttendanceRecordImage attendanceRecordImage)
    {
        return attendanceRecordImageMapper.selectAttendanceRecordImageList(attendanceRecordImage);
    }

    /**
     * 新增图片查看
     * 
     * @param attendanceRecordImage 图片查看
     * @return 结果
     */
    @Override
    public int insertAttendanceRecordImage(AttendanceRecordImage attendanceRecordImage)
    {
        return attendanceRecordImageMapper.insertAttendanceRecordImage(attendanceRecordImage);
    }

    /**
     * 修改图片查看
     * 
     * @param attendanceRecordImage 图片查看
     * @return 结果
     */
    @Override
    public int updateAttendanceRecordImage(AttendanceRecordImage attendanceRecordImage)
    {
        return attendanceRecordImageMapper.updateAttendanceRecordImage(attendanceRecordImage);
    }

    /**
     * 批量删除图片查看
     * 
     * @param ids 需要删除的图片查看ID
     * @return 结果
     */
    @Override
    public int deleteAttendanceRecordImageByIds(Long[] ids)
    {
        return attendanceRecordImageMapper.deleteAttendanceRecordImageByIds(ids);
    }

    /**
     * 删除图片查看信息
     * 
     * @param id 图片查看ID
     * @return 结果
     */
    @Override
    public int deleteAttendanceRecordImageById(Long id)
    {
        return attendanceRecordImageMapper.deleteAttendanceRecordImageById(id);
    }
}
